 <template>
  <el-table 
    ref="singleTable" 
    :data="reset" 
    border
    @selection-change="handleSelectionChange" 
    style="width: 100%" 
    :header-cell-style="{background:'#f4f4f4'}">
    <el-table-column fixed type="selection" align="center" width="55"></el-table-column>
    <!-- <el-table-column prop="LineId" label="ID"></el-table-column> -->
    <el-table-column 
      type="index"
      label="序号"
      align="center"
      width="55">
    </el-table-column>
    <!-- <el-table-column prop="LineId" label="ID" align="center"></el-table-column> -->
    <el-table-column prop="Code" label="线体编码" align="center"></el-table-column>
    <el-table-column prop="Name" label="线体简称" align="center" :show-overflow-tooltip="true" ></el-table-column>
    <el-table-column prop="Description" label="线体描述" align="center" :show-overflow-tooltip="true"></el-table-column>
    <el-table-column prop="WorkShopName" label="所属车间" align="center" :show-overflow-tooltip="true"></el-table-column>
    <el-table-column prop="IsEnableFormat" label="状态" align="center" :show-overflow-tooltip="true"></el-table-column>
    <el-table-column prop="Type" label="类型" align="center"></el-table-column>
    <el-table-column prop="Quantity" label="单小时产能" align="center" width="100"></el-table-column>
    <el-table-column prop="CreateByFormat" label="创建人" align="center" :show-overflow-tooltip="true"></el-table-column>
    <el-table-column prop="CreateTime" label="创建时间" :show-overflow-tooltip="true" ></el-table-column>
    <el-table-column prop="LastModifyByFormat" label="修改人" align="center" :show-overflow-tooltip="true"></el-table-column>
    <el-table-column prop="LastModifyTime" label="修改时间" align="center" :show-overflow-tooltip="true" ></el-table-column>
  </el-table>
</template>

<script>
export default {
  props:{
    reset:{
      type:Array
    }
  },
  data() {
    return {
      
    };
  },
  methods:{
     handleSelectionChange(val){
      this.$emit('changeData',val)
      let listId=[]
      val.forEach(el => {
        listId.push(el.LineId)
      });
      this.$emit('getId',listId)          
    },
  }
};
</script>